package cn.thr.ymcc.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 老师表
 * </p>
 *
 * @author thr
 * @since 2023-02-28
 */
@Data
@TableName("t_teacher")
public class Teacher extends Model<Teacher> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 简介
     */
    @NotBlank(message = "介绍不能为空")
    private String intro;

    /**
     * 技术栈
     */
    @NotBlank(message = "技术栈不能为空")
    private String technology;

    /**
     * 职位，高级讲师，架构师
     */
    @NotBlank(message = "职位不能为空")
    private String position;

    /**
     * 头像
     */
    private String headImg;
    @NotBlank(message = "标签不能为空")
    private String tags;

}
